package my.learnDB.tools;


import my.learnDB.dataSource.C3P0Util;
import my.learnDB.models.domain.Account;

import java.sql.SQLException;

public class ABTest {

    public static void main(String[] args) throws SQLException {

        ABDBHelper<Account> abdbHelper = new ABDBHelper<Account>(C3P0Util.getDataSource(), Account.class);

        Account account = abdbHelper.getOneResult("select * from account where id = ?", 1);

        System.out.println(account);
    }
}
